﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Vote.Manage" %>

<!doctype html>
<html>
<head runat="server">
    <title>投票主题</title>
    <meta http-equiv="Pragma" content="No-cach" />
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
</head>
<body>
    <table id="NavigationPath">
        <tr>
            <td><a href="Manage.aspx"><span>投票主题管理</span></a> | <a href="Add.aspx"><span>添加投票主题</span></a></td>
        </tr>
    </table>
    <form id="form1" runat="server">
        <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False"
            OnRowDataBound="GV_List_RowDataBound" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <HeaderTemplate>
                        <input name="chkHeader" onclick="javascript: SelectAll(this);" type="checkbox"
                            value="chkHeader" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                    <ItemStyle Width="30px" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Add.aspx?ID={0}"
                    DataTextField="Title" HeaderText="投票主题" />
                <asp:BoundField DataField="CountChoice" HeaderText="选项数量">
                    <ItemStyle HorizontalAlign="Right" Width="68px" />
                </asp:BoundField>
                <asp:BoundField DataField="SUMVoteNum" HeaderText="选票总和">
                    <ItemStyle HorizontalAlign="Right" Width="68px" />
                </asp:BoundField>
                <asp:BoundField DataField="CheckInTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="添加日期"
                    HtmlEncode="False">
                    <ItemStyle HorizontalAlign="Center" Width="120px" />
                </asp:BoundField>
                <asp:BoundField DataField="VoteType" HeaderText="选项类型">
                    <ItemStyle HorizontalAlign="Center" Width="68px" />
                </asp:BoundField>
            </Columns>
            <HeaderStyle CssClass="HeaderStyle" />
        </asp:GridView>
        <table style="width: 100%;">
            <tr>
                <td>
                    <asp:Button ID="btnDelete" runat="server"
                        CssClass="btn btn-danger" OnClick="btnDelete_Click" OnClientClick="return CheckSelected(this);"
                        Text=" 删除 " />
                    &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; </td>
            </tr>
        </table>
        
            
                <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" EnableViewState="False"
                    OnPageChanging="PageNavigation1_PageChanging">
                </WinnerCMS:PageNavigation>
         
    </form>
</body>
</html>
